<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // 左右结构必须一样
        // let [a,b,c]=[1,2,3];
        // let {a,b,c}={a:1,b:'2',c:'3'};

        // let [a,e,num,str]=[{a:12,b:12,c:14},[12,13],12,'222']
        // console.log(a,e,num,str)

        // 右边必须是一个东西
        // let {a,b,c}={1,2,3};
        // console.log(a,b,c)
        // 结构和赋值必须连续;
        // let [a,b,c];
        // [a,b,c]=[1,2,3];
        // console.log(a,b,c)
    </script>
</body>
</html>